import request from '@/utils/request'

/**
 * 获取申请详情信息
 */
export function getRecordDetail (parameter) {
  return request({
    url: '/v2/boss/project/apply/detail',
    method: 'get',
    params: parameter
  })
}
/**
 * 个人中心,上传资料
 */
export function updateForUploadAttachment (parameter) {
  return request({
    url: 'v2/boss/project/apply/person/updateForUploadAttachment',
    method: 'post',
    data: parameter
  })
}
/**
 * 合同列表
 */
export function getContractList (parameter) {
  return request({
    url: '/boss/project/manage/person/listPro',
    method: 'get',
    params: parameter
  })
}

/**
 * 获取申请详情信息
 */
export function getContractDetail (parameter) {
  return request({
    url: '/boss/project/manage/person/getById',
    method: 'post',
    data: parameter
  })
}

/**
 * 上传合同
 */
export function addFilePhoto (parameter) {
  return request({
    url: 'boss/project/manage/person/addFilePhoto',
    method: 'post',
    data: parameter
  })
}

export function downloadContract (parameter) {
  return request({
    url: '/boss/project/manage/person/downloadContract',
    method: 'get',
    params: parameter,
    responseType: 'blob'
  })
}
